

//Date 3-June-2014
/*
 *1. Ternary
  2. OR AND, single, unary AND OR
 * 
 */


public class Condition {
		public static void main(String[] args) {
			boolean isCond = false;
			int i=2, j=4; int array[] = new int[2];		
			
			
			int k = 0;
			if(i==3 ||  array[3]==0  || j==5)
			{
				k=2;
			}
			else if(i==2){
				
				k=4;
			}else{
				k=9;
			}
			
			//ternary operator
			int k1= (i==3 ||  array[3]==0  || j==5)?2:(i==2)?4:9; 
			
		}
}
